package com.gfm.story.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.gfm.story.entity.base.PageBean;
import com.gfm.story.entity.story.Store;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @BelongsProject: story
 * @BelongsPackage: com.gfm.story.dao
 * @Author: Administrator
 * @CreateTime: 2019-06-04 14:43
 * @Description: ${Description}
 */
public interface StoreDao extends BaseMapper<Store> {
    List<Store> selectStoreByUserId(@Param("userId") Long userId);

    Store getStoreByUserOrBook(@Param("bookId") Long bookId, @Param("userId")Long userId);

    Store getStoreByChapterOrUserOrBook( @Param("bookId")Long bookId, @Param("userId")Long userId);
}
